﻿@model blacksoft.Models.Producto
@using blacksoft.Helpers

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

<div class="block big">
    <div class="titlebar">
        <h3>Nuevo Producto</h3>
    </div>
    <div class="block_cont">

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">

                @Html.ValidationSummary(true)

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Nombre)
                    @Html.EditorFor(model => model.Nombre)
                    @Html.ValidationMessageFor(model => model.Nombre)

                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Descripcion)
                    @Html.EditorFor(model => model.Descripcion)
                    @Html.ValidationMessageFor(model => model.Descripcion)

                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.UnidadMedida)
                    @Html.EditorFor(model => model.UnidadMedida)
                    @Html.ValidationMessageFor(model => model.UnidadMedida)

                </div>

                @*<div class="form-group">
                        @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Estado)
                            @Html.ValidationMessageFor(model => model.Estado)
                        </div>
                    </div>*@
                <div class="form-row">
                    @Html.LabelForRequired(model => model.EnViaje)
                    @Html.EditorFor(model => model.EnViaje)
                    @Html.ValidationMessageFor(model => model.EnViaje)

                </div>

                <br />
                <div class="form-group">
                    <input type="submit" value="Registrar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")
                </div>
            </div>
        }
    </div>
</div>
   